“Is it unethical for Justice Stevens to write and testify about campaign finance restrictions?”

Eugene Volokh says no. I’m not sure why Justice Stevens doesn’t simply retire, given that he is not hearing any cases.  Then there would be no controversy whatsoever about the propriety of his testimony.